#ifndef GLOBAL_H
#define GLOBAL_H

//#include <iosfwd>
#include <string>
void clearScreen();

template<typename T>
void DrawAlways(std::ostream& os, T f) {
	os << f();
}

template<typename T>
void DrawOnlyWhen(std::ostream& os, bool trigger, T f) {
	if (trigger) {
		DrawAlways(os, f);
	}
}
#endif
